const dynamicRouter = require("../router.js");
const {verifyParams,verifyWebAuth} = require("@/zy-common/middleware")
const {getDynamicList,putDynamic,putDynamicLikes,deltDynamicLikes,getDynamicLikesList} = require("./index.controller")
const  {getDynamicListDesc,dynamicLikesDesc} = require("./validate")

dynamicRouter.post("/getDynamicList",verifyParams(getDynamicListDesc),getDynamicList)
dynamicRouter.post("/dynamic",verifyWebAuth,putDynamic)
dynamicRouter.post("/putDynamicLikes",verifyWebAuth,verifyParams(dynamicLikesDesc),putDynamicLikes)
dynamicRouter.post("/delDynamicLikes",verifyWebAuth,verifyParams(dynamicLikesDesc),deltDynamicLikes)
dynamicRouter.post("/getLikesList",getDynamicLikesList)


